<!-- begin container_toolbar template -->
<md-toolbar class="md-toolbar-tools md-hue-2" style="padding: 0;">
  {%- if page.date %}
  <!-- main page -->
  <a href="{{ page.lang | default: 'ru' | append: '/' | relative_url }}" style="height: 100%;">
    <md-button aria-label="main page" style="height: 100%; min-width: 0;">
      <b class="md-title">{% if page.lang != site.lang %}MAIN{% else %}ГЛАВНАЯ{% endif %}</b>
    </md-button>
  </a>
  {%- else %}
  <!-- home page -->
  <a href="{{ site.homepage_url }}" style="height: 100%;">
    <md-button aria-label="home page" style="height: 100%;">
      <b class="md-title">{{ site.homepage_name }}</b>
    </md-button>
  </a>
  {%- endif %}
  <!-- divider -->
  <p flex></p>
  {%- if page.url_translated %}
  <!-- switch language -->
  <a href="{{ page.url_translated | relative_url }}" style="height: 100%;">
    <md-button aria-label="switch language" style="height: 100%; min-width: 46px;">
      <b class="md-title">{{ page.lang | default: 'ru' | upcase }}</b>
    </md-button>
  </a>
  {%- endif %}
  {%- if site.older_tomato_baseurl %}
  <!-- older tomato -->
  <a href="{{ site.older_tomato_baseurl | append: page.canonical_url }}" style="height: 100%;">
    <md-button aria-label="older tomato" style="height: 100%; min-width: 46px;">
      <div style="height: 40px;">
        <md-icon md-svg-src="/img/typewriter.svg" style="width: 30px; height: 30px; color: currentColor; --color: currentColor;"></md-icon>
      </div>
    </md-button>
  </a>
  {%- endif %}
</md-toolbar>
<!-- end container_toolbar template -->
